import { ConfigManager } from "../../../com/gengine/resource/ConfigManager";
import { GameConst } from "../../component/gconst/GameConst";
import { UpdateCode } from "../../component/gconst/UpdateCode";
import { ThrowError } from "../../../com/gengine/debug/ThrowError";
type int = number;
//class ConstConfig
    
    export  class ConstConfig
    {
        constructor()
        {
            
            this._map = new Map<any, any> /* flash.utils.Dictionary */();
            this._updateMap = new Map<any, any> /* flash.utils.Dictionary */();
            this._updateCodeKeyMap = new Map<any, any> /* flash.utils.Dictionary */();
            if (ConstConfig._instance != null) 
            {
                throw new Error(" ResConfig 单例 ");
            }
            this.init();
            return;
        }

        /* internal  */write(arg1: Object): void
        {
            var loc1=null;
            var loc2=0;
            var loc3=arg1;
            for(loc1 of loc3) 
            {
                this._map[loc1.constName] = loc1;
            }
            return;
        }

        /* internal  */writeUpdate(arg1: Object): void
        {
            var loc1=null;
            var loc2=0;
            var loc3=arg1;
            for(loc1 of loc3) 
            {
                this._updateMap[loc1.updateName] = loc1;
                this._updateCodeKeyMap[loc1.updateCode] = loc1;
            }
            return;
        }

        public init(): void
        {
            var loc1=ConfigManager.instance.getJSONByFileName("t_const.json");
            this.write(loc1);
            GameConst.AttackDistance = this.getValueByName("AttackDistance");
            GameConst.AttackCd = this.getValueByName("AttackCd");
            GameConst.CollectDistance = this.getValueByName("CollectDistance") - 30;
            GameConst.ConveyMaxDistance = this.getValueByName("ConveyMaxDistance");
            GameConst.CopyGroupNameMaxLength = this.getValueByName("CopyGroupNameMaxLength");
            GameConst.EscortErrorInterval = this.getValueByName("EscortErrorInterval");
            GameConst.EscortLeftTimeOut = this.getValueByName("EscortLeftTimeOut");
            GameConst.EscortMinDistance = this.getValueByName("EscortMinDistance");
            GameConst.EscortNotityTime = this.getValueByName("EscortNotityTime");
            GameConst.EscortPassDistance = this.getValueByName("EscortPassDistance");
            GameConst.GroupKeepActive = this.getValueByName("GroupKeepActive");
            GameConst.GroupMaxPlayer = this.getValueByName("GroupMaxPlayer");
            GameConst.GroupShellDist = this.getValueByName("GroupShellDist");
            GameConst.MaxFriendAmount = this.getValueByName("MaxFriendAmount");
            GameConst.MaxShopBuyAmount = this.getValueByName("MaxShopBuyAmount");
            GameConst.NpcTaskDistance = this.getValueByName("NpcTaskDistance");
            GameConst.NpcTalkTriggerDistance = this.getValueByName("NpcTalkTriggerDistance");
            GameConst.PassDistance = this.getValueByName("PassDistance");
            GameConst.PassToMaxDistance = this.getValueByName("PassToMaxDistance");
            GameConst.PassToMinDistance = this.getValueByName("PassToMinDistance");
            GameConst.PetCallTime = 2000;
            GameConst.PetActiveCD = this.getValueByName("PetActiveCD");
            GameConst.PetActiveEnergyDel = this.getValueByName("PetActiveEnergyDel");
            GameConst.PetActiveLifespanDel = this.getValueByName("PetActiveLifespanDel");
            GameConst.PetBackDistance = this.getValueByName("PetBackDistance");
            GameConst.PetDieEnergyDel = this.getValueByName("PetDieEnergyDel");
            GameConst.PetDieLifespanDel = this.getValueByName("PetDieLifespanDel");
            GameConst.PetFollowDistance = this.getValueByName("PetFollowDistance");
            GameConst.PetNeedEnergy = this.getValueByName("PetNeedEnergy");
            GameConst.PetSireCost = this.getValueByName("PetSireCost");
            GameConst.PetSireTime = this.getValueByName("PetSireTime");
            GameConst.PetSireUnit = this.getValueByName("PetSireUnit");
            GameConst.PetVisionDistance = this.getValueByName("PetVisionDistance");
            GameConst.RevivalBindGold = this.getValueByName("RevivalBindGold");
            GameConst.RevivalFreeLevel = this.getValueByName("RevivalFreeLevel");
            GameConst.RevivalGold = this.getValueByName("RevivalGold");
            GameConst.SendMailCost = this.getValueByName("SendMailCost");
            GameConst.SetFightModeLevel = this.getValueByName("SetFightModeLevel");
            GameConst.SetPeaceModeCd = this.getValueByName("SetPeaceModeCd");
            GameConst.SkillPublicCd = this.getValueByName("SkillPublicCd");
            GameConst.UseLoopTaskBookRoleLevel = this.getValueByName("UseLoopTaskBookRoleLevel");
            GameConst.TransportRewardExpBase = this.getValueByName("TransportRewardExpBase");
            GameConst.TransportCashPledgeBase = this.getValueByName("TransportCashPledgeBase");
            GameConst.AddExtendBarCapacityFirstConst = this.getValueByName("AddExtendBarCapacityFirstCost");
            GameConst.AddExtendBarCapacitySecondConst = this.getValueByName("AddExtendBarCapacitySecondCost");
            GameConst.AddExtendBarCapacityThirdConst = this.getValueByName("AddExtendBarCapacityThirdCost");
            GameConst.AddExtendBarCapacityFourthConst = this.getValueByName("AddExtendBarCapacityForthCost");
            GameConst.GuildCreateNeedMoney = this.getValueByName("GuildCreateNeedMoney");
            GameConst.GuildCreateNeedUnit = this.getObjectByName("GuildCreateNeedMoney").constValueEx as int;
            GameConst.GuildCreatePlayerLevel = this.getValueByName("GuildCreatePlayerLevel");
            GameConst.GuildJoinPlayerLevel = this.getValueByName("GuildJoinPlayerLevel");
            GameConst.GuildNameLimit = this.getValueByName("GuildNameLimit");
            GameConst.GuildPurposeLimit = this.getValueByName("GuildPurposeLimit");
            GameConst.StoragePetCost = this.getValueByName("StoragePetCost");
            GameConst.StoragePetUnit = this.getValueByName("StoragePetUnit");
            GameConst.ReleaseKillEvilTaskTime_start = this.getValueByName("ReleaseKillEvilTaskTime");
            GameConst.ReleaseKillEvilTaskTime_end = this.getObjectByName("ReleaseKillEvilTaskTime")["constValueEx"] as int;
            GameConst.GetKillEvilTaskTime_start = this.getValueByName("GetKillEvilTaskTime");
            GameConst.GetKillEvilTaskTime_end = this.getObjectByName("GetKillEvilTaskTime")["constValueEx"] as int;
            GameConst.FriendBlessMaxCount = this.getValueByName("FriendBlessMaxCount") as int;
            GameConst.VIPHookCopyCode1 = this.getValueByName("VIPHookCopyCode1");
            GameConst.VIPHookCopyCode2 = this.getValueByName("VIPHookCopyCode2");
            GameConst.VIPHookCopyCode3 = this.getValueByName("VIPHookCopyCode3");
            GameConst.VIPHookCopyCode4 = this.getValueByName("VIPHookCopyCode4");
            GameConst.VIPHookCopyCode5 = this.getValueByName("VIPHookCopyCode5");
            GameConst.VIPHookCopyCode6 = this.getValueByName("VIPHookCopyCode6");
            GameConst.VIPHookCopyCode7 = this.getValueByName("VIPHookCopyCode7");
            GameConst.PetTrainAccelerateGoldBase = this.getValueByName("PetTrainAccelerateGoldBase");
            GameConst.PetTrainCoinBase = this.getValueByName("PetTrainCoinBase");
            GameConst.PetTrainGoldBase = this.getValueByName("PetTrainGoldBase");
            GameConst.PetTrainGoldRate = this.getValueByName("PetTrainGoldRate");
            GameConst.CopyExpDrawPercent = this.getValueByName("CopyExpDrawPercent");
            GameConst.PetGrowthFirstSkill = this.getValueByName("PetGrowthFirstSkill");
            GameConst.PetGrowthSecondSkill = this.getValueByName("PetGrowthSecondSkill");
            GameConst.PetSpiritFirstSkill = this.getValueByName("PetSpiritFirstSkill");
            GameConst.PetSpiritSecondSkill = this.getValueByName("PetSpiritSecondSkill");
            GameConst.WeddingCopyLifeTime = this.getValueByName("WeddingCopyLifeTime");
            GameConst.EnergyMax = this.getValueByName("EnergyMax");
            GameConst.MaxAccumulation = this.getValueByName("MaxAccumulation");
            GameConst.SuitSkillUpgradeMaxTimes = this.getValueByName("SuitSkillUpgradeMaxTimes");
            GameConst.WeddingMaxSweet = this.getValueByName("WeddingMaxSweetDegree");
            GameConst.AddPetWarehouseCapacityFirst = this.getValueByName("AddPetWarehouseCapacityFirst");
            GameConst.AddPetWarehouseCapacitySecond = this.getValueByName("AddPetWarehouseCapacitySecond");
            GameConst.AddPetWarehouseCapacityThird = this.getValueByName("AddPetWarehouseCapacityThird");
            GameConst.AddPetWarehouseCapacityForth = this.getValueByName("AddPetWarehouseCapacityForth");
            GameConst.GuildReikiRange = this.getValueExByName("GuildReikiRange");
            GameConst.PetExploreMaxTimesPerDay = this.getValueByName("PetExploreMaxTimesPerDay");
            GameConst.PetExploreCostInFail1 = this.getValueByName("PetExploreCostInFail1");
            GameConst.PetExploreCostInFail2 = this.getValueByName("PetExploreCostInFail2");
            GameConst.PetExploreCostInFail3 = this.getValueByName("PetExploreCostInFail3");
            GameConst.GuildBeastGrowthOne = this.getValueByName("GuildBeastGrowthOne");
            GameConst.GuildBeastGrowthTwo = this.getValueByName("GuildBeastGrowthTwo");
            GameConst.GuildBeastGrowthThree = this.getValueByName("GuildBeastGrowthThree");
            GameConst.MountChangeModelNeedNimbus = this.getValueByName("MountChangeModelNeedNimbus");
            GameConst.MountChangeModelTimeLimit = this.getValueByName("MountChangeModelTimeLimit");
            GameConst.MountChangeModelTimeLimitEx = this.getValueExByName("MountChangeModelTimeLimit");
            GameConst.WuxingDiceCount = this.getValueByName("WuxingDiceCount");
            GameConst.WuxingFreeChangeCount = this.getValueByName("WuxingFreeChangeCount");
            GameConst.PetEggRandomGiftBag = this.getValueByName("PetEggRandomGiftBag");
            GameConst.PetRandSkillCost = this.getValueExByName("PetRandSkillCost");
            GameConst.PetRandSkillCostActive = this.getValueExByName("PetRandSkillCostActive");
            GameConst.DiceFreeChange = this.getValueByName("ExpDiceFreeChange");
            GameConst.DiceThrowCount = this.getValueByName("ExpDice");
            GameConst.DicePlayerLevel = this.getValueByName("ExpDicePlayerLevel");
            GameConst.CrossSkyCityMapId = this.getValueByName("CrossSkyCityMapId");
            GameConst.SkyCityMaxPlayerNum = this.getValueByName("SkyCityMaxPlayerNum");
            GameConst.CrossSpaMaxPlayerNum = this.getValueByName("CrossSpaMaxPlayerNum");
            GameConst.RuneFeedFee1 = this.getValueByName("RuneFeedFee");
            GameConst.RuneFeedFee2 = this.getValueExByName("RuneFeedFee");
            GameConst.PetRecallCd = this.getValueByName("PetRecallCd");
            GameConst.PetRevivalCD = this.getValueByName("PetRevivalCD");
            GameConst.ArenaCopyCode = this.getValueByName("ArenaCopyCode");
            GameConst.ArenaCrossCopyCode = this.getValueByName("ArenaCrossCopyCode");
            GameConst.GangFightsCopyCode = this.getValueByName("GangFightsCopyCode");
            GameConst.SpiritCoinDailyMax = this.getValueByName("SpiritCoinDailyMax");
            GameConst.QixingShenhunMaxStar = this.getValueByName("QixingShenhunMaxStar");
            GameConst.QixingShenhunUseGoldAdd = this.getValueByName("QixingShenhunUseGoldAdd");
            GameConst.CrossSpiritWarCopyCode = this.getValueByName("CrossSpiritWarCopyCode");
            GameConst.WrestleCopyCode = this.getValueByName("WrestleCopyCode");
            GameConst.CrossBeachCopyCode = this.getValueByName("CrossBeachCopyCode");
            GameConst.CrossBeachMaxPlayerNum = this.getValueByName("CrossBeachMaxPlayerNum");
            GameConst.OlympicGuessDailyRight = this.getValueByName("OlymDayGuessRightGift");
            GameConst.OlympicGuessDailyWrong = this.getValueExByName("OlymDayGuessRightGift");
            GameConst.OlympicGuessAllWin = this.getValueByName("OlymAllGuessAllRightGift");
            GameConst.OlympicGuess10Win = this.getValueByName("OlymAllGuess10RightGift");
            GameConst.OlympicGuess7Win = this.getValueByName("OlymAllGuess7RightGift");
            GameConst.OlympicGuess3Win = this.getValueByName("OlymAllGuess3RightGift");
            GameConst.OlympicGuess2Win = this.getValueByName("OlymAllGuess0RightGift");
            GameConst.OlympicGuessMostWin = this.getValueByName("OlymMostGoldGuessGift");
            GameConst.QuickLoopTaskCoinLevel = this.getValueByName("QuickLoopTaskCoinLevel");
            GameConst.QuickCycleTaskCoinLevel = this.getValueByName("QuickCycleTaskCoinLevel");
            GameConst.QuickSchoolTaskCoinLevel = this.getValueByName("QuickSchoolTaskCoinLevel");
            GameConst.QuickKillEvilTaskCoinLevel = this.getValueByName("QuickKillEvilTaskCoinLevel");
            GameConst.SpringRubbackLimit = this.getValueByName("SpringRubbackLimit");
            GameConst.SpringRubdownLimit = this.getValueByName("SpringRubdownLimit");
            GameConst.SpringSoapLimit = this.getValueByName("SpringSoapLimit");
            GameConst.PetExploreAutoExploreCost = this.getValueByName("PetExploreAutoExploreCost");
            GameConst.UpdateAvatarCount = this.getValueByName("UpdateAvatarCount");
            GameConst.UpdateAvatarInterval = this.getValueByName("UpdateAvatarInterval");
            GameConst.UpgradeRootProtectAddRate = this.getValueByName("UpgradeRootProtectAddRate");
            GameConst.PetArenaRandomChallengeMoneyCost = this.getValueByName("PetArenaRandomChallengeMoneyCost");
            GameConst.PetOneKeyRandomChallengeMoneyCost = this.getValueExByName("PetArenaRandomChallengeMoneyCost");
            GameConst.UpgradeRootProtectAddRateEx = this.getValueExByName("UpgradeRootProtectAddRate");
            GameConst.UpgradeRootProtectAddRate130 = this.getValueByName("UpgradeRootProtectAddRateEx");
            GameConst.MountReincarnateLevelLimit = this.getValueByName("MountReincarnateLevelLimit");
            GameConst.MinPetLevelForLifestyle = this.getValueByName("MinPetLevelForLifestyle");
            GameConst.AddCountEveryPetLevel = this.getValueByName("AddCountEveryPetLevel");
            GameConst.DramaLotteryRefresh = this.getValueByName("DramaLotteryRefresh");
            GameConst.DramaLotteryRefreshEx = this.getValueExByName("DramaLotteryRefresh");
            GameConst.DramaLotteryLimit = this.getValueByName("DramaLotteryLimit");
            GameConst.DramaLotteryLimitEx = this.getValueExByName("DramaLotteryLimit");
            GameConst.DramaLotteryExplorerType = this.getValueByName("DramaLotteryExplorerType");
            GameConst.PetChangeModelCost = this.getValueByName("PetChangeModelCost");
            GameConst.SecondCareerLevel = this.getValueByName("CareerSecondOpenLevel");
            GameConst.FishMaxCount = this.getValueByName("FishMaxCount");
            GameConst.FishMaxCountEx = this.getValueExByName("FishMaxCount");
            GameConst.BossFieldCampForceMaxPlayerNum = this.getValueByName("BossFieldCampForceMaxPlayerNum");
            GameConst.BossFieldBossForceMaxPlayerNum = this.getValueByName("BossFieldBossForceMaxPlayerNum");
            GameConst.CrossBossFieldCampForceMaxPlayerNum = this.getValueByName("CrossBossFieldCampForceMaxPlayerNum");
            GameConst.BossFieldTaskAssistNum = this.getValueByName("BossFieldTaskAssistNum");
            GameConst.BossFieldTaskBeKillNum = this.getValueByName("BossFieldTaskBeKillNum");
            GameConst.BossFieldTaskKillNum = this.getValueByName("BossFieldTaskKillNum");
            GameConst.BossFieldTaskHonourAward = this.getValueByName("BossFieldTaskHonourAward");
            GameConst.MaxGuildSkillLevel = this.getValueByName("MaxGuildSkillLevel");
            GameConst.GradeEightSparlLimit = this.getValueByName("GradeSevenSparLimit14140001");
            GameConst.GradeSevenSparlLimit = this.getValueExByName("GradeSevenSparLimit14140001");
            GameConst.MaxFightSpiritLevel = this.getValueByName("MaxFightSpiritLevel");
            GameConst.HighCultureFightSpiritCost = this.getValueByName("HighCultureFightSpiritCost");
            GameConst.EveryDayMaxCultureTimes = this.getValueByName("EveryDayMaxCultureTimes");
            GameConst.CrossDefenceRecycleBackRate = this.getValueByName("CrossDefenseMaterialReturn");
            GameConst.CrossDefenseTowerDistance = this.getValueByName("CrossDefenseTowerDistance");
            GameConst.CrossDefenseAttackDistance = this.getValueByName("CrossdefenseAttackDistance");
            GameConst.CultureFightSpiritCost = this.getValueByName("CultureFightSpiritCost");
            GameConst.CrossSecretGuideBossCode = this.getValueByName("CrossSecretGuideBossCode");
            GameConst.CrossDefensePracticeNum = this.getValueByName("CrossDefensePractice");
            GameConst.CrossDefensePracticeCost = this.getValueExByName("CrossDefensePractice");
            GameConst.EatBeansCopyTime = this.getValueByName("EatBeansCopyTime");
            GameConst.RobCityThreeTotalLife = this.getValueByName("RobCityThreeTotalLife");
            GameConst.PlantFlowerBlessRewardLimit = this.getValueByName("PlantFlowerBlessRewardLimit");
            GameConst.ModelChangeDayLimit = this.getValueByName("ModelChangeDayLimit");
            GameConst.ModelChangeNimbusCost = this.getValueByName("ModelChangeNimbusCost");
            GameConst.MountAvance3zhuanMaxLv = this.getValueByName("MountAdvanceMaxLevel");
            GameConst.MountAdvanceMaxLevel = this.getValueExByName("MountAdvanceMaxLevel");
            GameConst.MountAdvanceLevelLimit = this.getValueByName("MountAdvanceLevelLimit");
            GameConst.MountWashCostCoin = this.getValueByName("MountWashCostCoin");
            GameConst.MountWashLevelLimit = this.getValueByName("MountWashLevelLimit");
            GameConst.RobIslandGuildAttackCD = this.getValueByName("RobIslandGuildAttackCD");
            GameConst.RobIslandGuildEliteNum = this.getValueByName("RobIslandGuildEliteNum");
            GameConst.RobIslandAttackTimes = this.getValueByName("RobIslandAttackTimes");
            GameConst.RobIslandFightPrepareTime = this.getValueByName("RobIslandFightPrepareTime");
            GameConst.RobIslandExtraAttackTimes = this.getValueByName("RobIslandExtraAttackTimes");
            GameConst.RobIslandExtraAttackCost = this.getValueByName("RobIslandExtraAttackCost");
            GameConst.CrossCopyExtraTimes = this.getValueByName("CrossCopyExtraTimes");
            GameConst.UpradeAmuletScoreMaxTimes = this.getValueByName("UpradeAmuletScoreMaxTimes");
            GameConst.MountCopyConsume1 = this.getValueByName("MountCopyConsume1");
            GameConst.MountCopyConsume2 = this.getValueByName("MountCopyConsume2");
            GameConst.MountCopyConsume3 = this.getValueByName("MountCopyConsume3");
            GameConst.MountCopyConsume4 = this.getValueByName("MountCopyConsume4");
            GameConst.IllustateOpenLevel = this.getValueByName("IllustateOpenLevel");
            GameConst.SignSupplementCost = this.getValueByName("SignSupplementCost");
            GameConst.ActivePrevilegeAwardDays = this.getValueByName("ActivePrevilegeAwardDays");
            GameConst.cultureFlyGrowCoinBindPer = this.getValueByName("CultureFlyGrowCoinBindPer");
            GameConst.cultureFlyGrowPropNumPer = this.getValueByName("CultureFlyGrowPropNumPer");
            GameConst.ArenaCrossBetGoldMax = this.getValueByName("ArenaCrossBetGoldMax");
            GameConst.EUpdateCodeNewYearRedReward = this.getValueByName("RedEnvelopeReward");
            loc1 = ConfigManager.instance.getJSONByFileName("t_update_code.json");
            this.writeUpdate(loc1);
            UpdateCode.EUpdateCodeNULL = this.getCodeByName("EUpdateCodeNULL");
            UpdateCode.EUpdateCodeTest = this.getCodeByName("EUpdateCodeTest");
            UpdateCode.EUpdateCodeGM = this.getCodeByName("EUpdateCodeGM");
            UpdateCode.EUpdateCodeDbOperationFail = this.getCodeByName("EUpdateCodeDbOperationFail");
            UpdateCode.EUpdateCodeLogin = this.getCodeByName("EUpdateCodeLogin");
            UpdateCode.EUpdateCodeTask = this.getCodeByName("EUpdateCodeTask");
            UpdateCode.EUpdateCodeChat = this.getCodeByName("EUpdateCodeChatTrumpet");
            UpdateCode.EUpdateCodeSkill = this.getCodeByName("EUpdateCodeSkill");
            UpdateCode.EUpdateCodeSystem = this.getCodeByName("EUpdateCodeSystem");
            UpdateCode.EUpdateCodeByCopy = this.getCodeByName("EUpdateCodeByCopy");
            UpdateCode.EUpdateCodeTaskAndGuide = this.getCodeByName("EUpdateCodeTaskAndGuide");
            UpdateCode.EUpdateCodeTransport = this.getCodeByName("EUpdateCodeTransport");
            UpdateCode.EUpdateCodeTaskFlushLoopBook = this.getCodeByName("EUpdateCodeTaskFlushLoopBook");
            UpdateCode.EUpdateCodeTaskFlushTransport = this.getCodeByName("EUpdateCodeTaskFlushTransport");
            UpdateCode.EUpdateCodeBagTidy = this.getCodeByName("EUpdateCodeBagTidy");
            UpdateCode.EUpdateCodeBagSplit = this.getCodeByName("EUpdateCodeBagSplit");
            UpdateCode.EUpdateCodeBagRemove = this.getCodeByName("EUpdateCodeBagRemove");
            UpdateCode.EUpdateCodeBagUse = this.getCodeByName("EUpdateCodeBagUse");
            UpdateCode.EUpdateCodeBagMove = this.getCodeByName("EUpdateCodeBagMove");
            UpdateCode.EUpdateCodeBagGet = this.getCodeByName("EUpdateCodeBagGet");
            UpdateCode.EUpdateCodeBagUseFixGiftBag = this.getCodeByName("EUpdateCodeBagUseFixGiftBag");
            UpdateCode.EUpdateCodeBagUseRandGiftBag = this.getCodeByName("EUpdateCodeBagUseRandGiftBag");
            UpdateCode.EUpdateCodeBagTidyLogin = this.getCodeByName("EUpdateCodeBagTidyLogin");
            UpdateCode.EUpdateCodeBagUseDrug = this.getCodeByName("EUpdateCodeBagUseDrug");
            UpdateCode.EUpdateCodeBagAddExtendBarCapacity = this.getCodeByName("EUpdateCodeBagAddExtendBarCapacity");
            UpdateCode.EUpdateCodeWarehouseTidy = this.getCodeByName("EUpdateCodeWarehouseTidy");
            UpdateCode.EUpdateCodeWarehouseMove = this.getCodeByName("EUpdateCodeWarehouseMove");
            UpdateCode.EUpdateCodeShopBuyItem = this.getCodeByName("EUpdateCodeShopBuyItem");
            UpdateCode.EUpdateCodeShopSellItem = this.getCodeByName("EUpdateCodeShopSellItem");
            UpdateCode.EUpdateCodeShopPanicBuy = this.getCodeByName("EUpdateCodeShopPanicBuy");
            UpdateCode.EUpdateCodeShopRepairWeapon = this.getCodeByName("EUpdateCodeShopRepairWeapon");
            UpdateCode.EUpdateCodeShopBuyBack = this.getCodeByName("EUpdateCodeShopBuyBack");
            UpdateCode.EUpdateCodeRoleDress = this.getCodeByName("EUpdateCodeRoleDress");
            UpdateCode.EUpdateCodeRoleUndress = this.getCodeByName("EUpdateCodeRoleUndress");
            UpdateCode.EUpdateCodeRoleUpdateCareer = this.getCodeByName("EUpdateCodeRoleUpdateCareer");
            UpdateCode.EUpdateCodeRoleEquipDurableUpdate = this.getCodeByName("EUpdateCodeRoleEquipDurableUpdate");
            UpdateCode.EUpdateCodeMountExtend = this.getCodeByName("EUpdateCodeMountExtend");
            UpdateCode.EUpdateCodeMountEquip = this.getCodeByName("EUpdateCodeMountEquip");
            UpdateCode.EUpdateCodeMountUnEquip = this.getCodeByName("EUpdateCodeMountUnEquip");
            UpdateCode.EUpdateCodeMountBeckon = this.getCodeByName("EUpdateCodeMountBeckon");
            UpdateCode.EUpdateCodeMountRecall = this.getCodeByName("EUpdateCodeMountRecall");
            UpdateCode.EUpdateCodeMountRemove = this.getCodeByName("EUpdateCodeMountRemove");
            UpdateCode.EUpdateCodeMountSale = this.getCodeByName("EUpdateCodeMountSale");
            UpdateCode.EUpdateCodeByRelive = this.getCodeByName("EUpdateCodeByRelive");
            UpdateCode.EUpdateCodeByPass = this.getCodeByName("EUpdateCodeByPass");
            UpdateCode.EUpdateCodeBySetMode = this.getCodeByName("EUpdateCodeBySetMode");
            UpdateCode.EUpdateCodeByConvey = this.getCodeByName("EUpdateCodeByConvey");
            UpdateCode.EUpdateCodeByKillBoss = this.getCodeByName("EUpdateCodeByKillBoss");
            UpdateCode.EUpdateCodeByPikeItem = this.getCodeByName("EUpdateCodeByPikeItem");
            UpdateCode.EUpdateCodePetActive = this.getCodeByName("EUpdateCodePetActive");
            UpdateCode.EUpdateCodePetChangeStatus = this.getCodeByName("EUpdateCodePetChangeStatus");
            UpdateCode.EUpdateCodePetSire = this.getCodeByName("EUpdateCodePetSire");
            UpdateCode.EUpdateCodePetDead = this.getCodeByName("EUpdateCodePetDead");
            UpdateCode.EUpdateCodePetAdvance = this.getCodeByName("EUpdateCodePetAdvance");
            UpdateCode.EUpdateCodeItemUpdateStart = this.getCodeByName("EUpdateCodeItemUpdateStart");
            UpdateCode.EUpdateCodeMakeHole = this.getCodeByName("EUpdateCodeMakeHole");
            UpdateCode.EUpdateCodeStrengthen = this.getCodeByName("EUpdateCodeStrengthen");
            UpdateCode.EUpdateCodeRefine = this.getCodeByName("EUpdateCodeRefine");
            UpdateCode.EUpdateCodeRecast = this.getCodeByName("EUpdateCodeRecast");
            UpdateCode.EUpdateCodeEmbedJewel = this.getCodeByName("EUpdateCodeEmbedJewel");
            UpdateCode.EUpdateCodeComposeJewel = this.getCodeByName("EUpdateCodeComposeJewel");
            UpdateCode.EUpdateCodeRemoveJewel = this.getCodeByName("EUpdateCodeRemoveJewel");
            UpdateCode.EUpdateCodeItemUpdateEnd = this.getCodeByName("EUpdateCodeItemUpdateEnd");
            UpdateCode.EUpdateCodeMailSend = this.getCodeByName("EUpdateCodeMailSend");
            UpdateCode.EUpdateCodeMailGetAttachment = this.getCodeByName("EUpdateCodeMailGetAttachment");
            UpdateCode.EUpdateCodeBusiness = this.getCodeByName("EUpdateCodeBusiness");
            UpdateCode.EUpdateCodeOperationOnlineRecharge = this.getCodeByName("EUpdateCodeOperationOnlineRecharge");
            UpdateCode.EUpdateCodeOperationOnlineGiveMoney = this.getCodeByName("EUpdateCodeOperationOnlineGiveMoney");
            UpdateCode.EUpdateCodeOperationOnlineGiveItem = this.getCodeByName("EUpdateCodeOperationOnlineGiveItem");
            UpdateCode.EUpdateCodeUsePromotionCard = this.getCodeByName("EUpdateCodeUsePromotionCard");
            UpdateCode.EUpdateCodeNewPlayerReward = this.getCodeByName("EUpdateCodeNewPlayerReward");
            UpdateCode.EUpdateCodeDailyReward = this.getCodeByName("EUpdateCodeDailyReward");
            UpdateCode.EUpdateCodeLevelReward = this.getCodeByName("EUpdateCodeLevelReward");
            UpdateCode.EUpdateCodeGetOfflineExp = this.getCodeByName("EUpdateCodeGetOfflineExp");
            UpdateCode.EUpdateCodeMagicTower = this.getCodeByName("EUpdateCodeMagicTower");
            UpdateCode.EUpdateBlessBottle = this.getCodeByName("EUpdateBlessBottle");
            UpdateCode.EUpdateCodeUseLotteryCopy = this.getCodeByName("EUpdateCodeUseLotteryCopy");
            UpdateCode.EUpdateCodeCopyMarkTask = this.getCodeByName("EUpdateCodeCopyMarkTask");
            UpdateCode.EUpdateCodeUseLottery = this.getCodeByName("EUpdateCodeUseLottery");
            UpdateCode.EUpdateCodeUseLotteryActive = this.getCodeByName("EUpdateCodeUseLotteryActive");
            UpdateCode.EupdateCodeArenaGiftBag = this.getCodeByName("EupdateCodeArenaGiftBag");
            UpdateCode.EUpdateCodePeaceFieldReward = this.getCodeByName("EUpdateCodePeaceFieldReward");
            UpdateCode.EUpdateCodeMergeCopy = this.getCodeByName("EUpdateCodeMergeCopy");
            UpdateCode.EUpdateCodeGuildWar = this.getCodeByName("EUpdateCodeGuildWar");
            UpdateCode.EUpdateCodeGuildParty = this.getCodeByName("EUpdateCodeGuildParty");
            UpdateCode.EUpdateCodeGuildPartyFood = this.getCodeByName("EUpdateCodeGuildPartyFood");
            UpdateCode.EUpdateCodeGuildTreeWorm = this.getCodeByName("EUpdateCodeGuildTreeWorm");
            UpdateCode.EUpdateCodeGuildTreeRipe = this.getCodeByName("EUpdateCodeGuildTreeRipe");
            UpdateCode.EUpdateCodeGuildFlame = this.getCodeByName("EUpdateCodeGuildFlame");
            UpdateCode.EUpdateCodeGuildStruggle = this.getCodeByName("EUpdateCodeGuildStruggle");
            UpdateCode.EUpdateCodeGuildDefense = this.getCodeByName("EUpdateCodeGuildDefense");
            UpdateCode.ExpDice = this.getCodeByName("ExpDice");
            UpdateCode.EUpdateCodeBagUseSuperExp = this.getCodeByName("EUpdateCodeBagUseSuperExp");
            UpdateCode.EUpdateCodeRuneFeed = this.getCodeByName("EUpdateCodeRuneFeed");
            UpdateCode.EUpdateCodeArenaCrossActive = this.getCodeByName("EUpdateCodeArenaCrossActive");
            UpdateCode.EUpdateCodeFixStone = this.getCodeByName("EUpdateCodeFixStone");
            UpdateCode.EUpdateCodeMakeCake = this.getCodeByName("EUpdateCodeMakeCake");
            UpdateCode.EUpdateCodeArenaCross = this.getCodeByName("EUpdateCodeArenaCross");
            UpdateCode.EUpdateCodeFreeDeletegate = this.getCodeByName("EUpdateCodeFreeDeletegate");
            UpdateCode.EUpdateCodeLifeStyleHunt = this.getCodeByName("EUpdateCodeLifeStyleHunt");
            UpdateCode.EUpdateCodeDramaCopy = this.getCodeByName("EUpdateCodeDramaCopy");
            UpdateCode.EUpdateCodeDragonGold = this.getCodeByName("EUpdateCodeDragonGold");
            UpdateCode.EUpdateCodeDragonGift = this.getCodeByName("EUpdateCodeDragonGift");
            UpdateCode.EUpdateCodeCrossDefenseReward = this.getCodeByName("EUpdateCodeCrossDefenseReward");
            UpdateCode.EUpdateCodeRuneFeedActive = this.getCodeByName("EUpdateCodeRuneFeedActive");
            UpdateCode.EUpdateCodeWuXingUpgradeAccActive = this.getCodeByName("EUpdateCodeWuXingUpgradeAccActive");
            UpdateCode.EUpdateCodeWuXingRefreshAccActive = this.getCodeByName("EUpdateCodeWuXingRefreshAccActive");
            UpdateCode.EUpdateCodePetSkillRefreshActive = this.getCodeByName("EUpdateCodePetSkillRefreshActive");
            UpdateCode.EUpdateCodeJewelAdvanceActive = this.getCodeByName("EUpdateCodeJewelAdvanceActive");
            UpdateCode.EUpdateCodeMountAdvancePropRetActive = this.getCodeByName("EUpdateCodeMountAdvancePropRetActive");
            UpdateCode.EUpdateCodeBlessGift = this.getCodeByName("EUpdateCodeBlessGift");
            UpdateCode.EUpdateCodeNpcAward = this.getCodeByName("EUpdateCodeNpcAward");
            UpdateCode.EUpdateCodeEatBeans = this.getCodeByName("EUpdateCodeEatBeans");
            UpdateCode.EUpdateCodePlantFlowerActive = this.getCodeByName("EUpdateCodePlantFlowerActive");
            UpdateCode.EUpdateCodePlantFlowerBlessReward = this.getCodeByName("EUpdateCodePlantFlowerBlessReward");
            UpdateCode.EUpdateCodeCountryMoney = this.getCodeByName("EUpdateCodeCountryMoney");
            UpdateCode.EupdateCodeCopySealReward = this.getCodeByName("EupdateCodeCopySealReward");
            UpdateCode.EUpdateCodeMountUpgradeActive = this.getCodeByName("EUpdateCodeMountUpgradeActive");
            UpdateCode.EUpdateCodeMountFosterActive = this.getCodeByName("EUpdateCodeMountFosterActive");
            UpdateCode.EUpdateCodeMountStarsCultrueActive = this.getCodeByName("EUpdateCodeMountStarsCultrueActive");
            UpdateCode.EUpdateCodeEquipRefresh = this.getCodeByName("EUpdateCodeEquipRefresh");
            UpdateCode.EUpdateCodeCrossGuildWar = this.getCodeByName("EUpdateCodeCrossGuildWar");
            UpdateCode.EUpdateCodeLuckyBag = this.getCodeByName("EUpdateCodeLuckyBag");
            UpdateCode.EUpdateCodeMountCopyDrop = this.getCodeByName("EUpdateCodeMountCopyDrop");
            UpdateCode.EUpdateCodeHolidaySign = this.getCodeByName("EUpdateCodeHolidaySign");
            UpdateCode.EUpdateCodeNewDayRechargeGiftBag = this.getCodeByName("EUpdateCodeNewDayRechargeGiftBag");
            UpdateCode.EUpdateCodeNewCumulateRecharge = this.getCodeByName("EUpdateCodeNewCumulateRecharge");
            UpdateCode.EUpdateCodeLotteryActiveReward = this.getCodeByName("EUpdateCodeLotteryActiveReward");
            UpdateCode.EUpdateCodePloughRewardToBag = this.getCodeByName("EUpdateCodePloughRewardToBag");
            UpdateCode.EUpdateCodeCallBackExpGiving = this.getCodeByName("EUpdateCodeCallBackExpGiving");
            UpdateCode.EUpdateCodeDominion = this.getCodeByName("EUpdateCodeDominion");
            return;
        }

        public getObjectByName(arg1: string): Object
        {
            return this._map[arg1];
        }

        public getValueByName(arg1: string): int
        {
            var loc1=this._map[arg1];
            if (loc1) 
            {
                return loc1.constValue;
            }
            ThrowError.show("constConfig: " + arg1 + " 不存在");
            return 0;
        }

        public getValueExByName(arg1: string): int
        {
            var loc1=this._map[arg1];
            if (loc1) 
            {
                return loc1.constValueEx;
            }
            ThrowError.show("constConfig: " + arg1 + " 不存在");
            return 0;
        }

        public getCodeByName(arg1: string): int
        {
            var name: string;
            var o: Object;

            var loc1;
            o = null;
            name = arg1;
            try 
            {
                o = this._updateMap[name];
                return o.updateCode;
            }
            catch (e)
            {
                throw new Error("错误:" + name);
            }
            return 0;
        }

        public getOutUpdateStrByCode(arg1: int): string
        {
            var code: int;
            var o: Object;

            var loc1;
            o = null;
            code = arg1;
            try 
            {
                o = this._updateCodeKeyMap[code];
                if (o.outUpdateStr) 
                {
                    return o.outUpdateStr;
                }
                return "";
            }
            catch (e)
            {
                return "";
            }
            return "";
        }

        public static get instance(): ConstConfig
        {
            if (ConstConfig._instance == null) 
            {
                ConstConfig._instance = new ConstConfig();
            }
            return ConstConfig._instance;
        }

        /* internal */ /* var */_map: Map<any, any> /* flash.utils.Dictionary */;

        /* internal */ /* var */_updateMap: Map<any, any> /* flash.utils.Dictionary */;

        /* internal */ /* var */_updateCodeKeyMap: Map<any, any> /* flash.utils.Dictionary */;

        /* internal */ static /* var */_instance: ConstConfig;
    }
